import { HtmlType } from "../../../../constants/excel";

export default class Selections extends React.Component {
    render() {
        const { htmlType, options = [] } = this.props;
        if (htmlType === HtmlType.Select) {
            return (
                <div className="ant-row">
                    <label>选项内容</label>
                    <ul className="edc-select-options">
                        {options.map(d => (<li key={d.selectValue}>
                            <div>{d.selectName}</div>
                        </li>))}
                    </ul>
                </div>
            )
        } else {
            return null;
        }
    }
}